import request from '@/utils/request.js'

// 登录接口
export const getUserChannelAPI = function () {
  return request.get('/v1_0/user/channels')
}

// 获取首页用户频道对应的文章列表
export const getArtListAPI = (id) => {
  return request.get('/v1_1/articles', {
    params: {
      channel_id: id,
      timestamp: 1556789000001,
      with_top: 1
    }
  })
}
